 /**
   * Copyright 2014 Viettel Telecom. All rights reserved.
   * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   */
 package com.viettel.core.dao.cms; 
import java.util.ArrayList;
import java.util.List; 

import com.viettel.core.entities.cms.Questions;
import com.viettel.core.entities.cms.Users;
import com.viettel.core.entities.vo.QuestionSearchFilter;
import com.viettel.core.entities.vo.QuestionSearchVO;
import com.viettel.core.entities.vo.QuestionUserVO;
import com.viettel.core.exceptions.DataAccessException; 
 /**
   *  Mo ta muc dich cua lop (interface)
   *  @author: TOANTM1
   *  @version:  
   *  @since: 27/02/2014 - 11:34:02
   */
 public interface QuestionsDAO { 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	Questions getQuestionsById(Integer id) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	Questions createQuestions(Questions questions) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	void updateQuestions(Questions questions) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	void deleteQuestions(Questions questions) throws DataAccessException; 
 	
 	/**
 	 * @author huanlh5
 	 * @param filter
 	 * @return
 	 * @throws DataAccessException
 	 */
 	List<QuestionSearchVO> getListQuestionByFilter(QuestionSearchFilter filter) throws DataAccessException;
 	
 	List<QuestionUserVO> getListQuestionByPhone(String phone, Integer maxRows) throws DataAccessException;
 	
 	List<Questions> getListQuestionArticleId(Integer id) throws DataAccessException;
 	List<Questions> getListQuestionsByCmsUserId(Integer id) throws DataAccessException;
 	List<Questions> getListQuestionsByUserId(Integer id) throws DataAccessException;
 	
 	List<Questions> getListQuestionsNearOverTime() throws DataAccessException;
} 
